﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.AccountsDomain
{
  public  class AccountGroup
    {

        #region Properties
        public int ID { get; set; }
        public string Code { get; set; }
        public string Group { get; set; }
        public string Descripton { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public Nullable<int> AccountGroupID { get; set; }      
        #endregion

        #region NavigationalProperties
        [ForeignKey("AccountGroupID")]
        public virtual AccountGroup Parent { get; set; }       
        public virtual ICollection<AccountGroup> Children { get; set; }
        public virtual ICollection<Account> Accounts { get; set; }        
        #endregion

    }
}
